<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
<h:head>
  <title><ui:insert name="title">Default title</ui:insert></title>
 
</h:head>

<body>
		<h:graphicImage id="image" alt="jsf-sun" url="seerc.jpg" style="height: 115px; width: 266px; "></h:graphicImage>
		<p:panel id="panel" header="Welcome to the Project Management Application"> 
		 
        <h:form>
            <p:panelGrid id="panelgrid" columns="2">            	
                <h:outputText value="Name"></h:outputText>
                <p:inputText id="username" value="#{loginBean.name}" required="true" requiredMessage="Please enter your username."></p:inputText>
                 
                <h:outputText value="Password"></h:outputText>
                <p:password id = "password" value="#{loginBean.password}" required="true" requiredMessage="Please enter your password."></p:password>
                   
            </p:panelGrid>       
            <p:message for="username" />
           	<p:message for="password" />
            <h:commandButton value="Login" action="#{loginBean.authenticate}" ></h:commandButton>   
        </h:form>
    </p:panel>      
   
 </body>

</html>
